#include "displayTab.h"
#include "worksheet.h"
#include "worksheetmanager.h"
#include "mesinkata.h"
#include "eval_proc.h"

int main ()
{
	Sheet S;
	string Kolom, File, temp;
	FILE *f = Nil;

	printf("Input Nama File: ");
	
	StartString(f);
	while (!end)
	{
		AdvString(f);
	}
	
	File = cString;
	Baca_WorkSheet(File, &S);
	
	printf("\nMenampilkan Semua: \n");
	
	DisplayAll(S);
	
	printf("Input Posisi Awal: ");
	StartString(f);
	while (!end)
	{
		AdvString(f);
	}
	Kolom = cString;
	
	printf("Input Posisi Akhir: ");
	StartString(f);
	while (!end)
	{
		AdvString(f);
	}
	
	temp = STDEV(S,Kolom,cString);
	printf("%s\n",temp.s);
	
	temp = AVERAGE(S,Kolom,cString);
	printf("%s\n",temp.s);
	
	printf("Menghapus Area: \n");
	printf("Input Posisi Awal: ");
	StartString(f);
	while (!end)
	{
		AdvString(f);
	}
	Kolom = cString;
	
	printf("Input Posisi Akhir: ");
	StartString(f);
	while (!end)
	{
		AdvString(f);
	}
	RemoveArea(&S,Kolom,cString);
	
	printf("\nMenampilkan Area: \n");
	
	printf("Input Posisi Awal: ");
	StartString(f);
	while (!end)
	{
		AdvString(f);
	}
	Kolom = cString;
	
	printf("Input Posisi Akhir: ");
	StartString(f);
	while (!end)
	{
		AdvString(f);
	}
	
	DisplayArea(S,Kolom,cString);
	
	Close_Worksheet(File, S);

	return 0;
}
